package org.gd.hellojaxb.privat24.regular;

import javax.xml.bind.annotation.*;

@XmlEnum
public enum RegularPayPeriod {

    @XmlEnumValue("M") MONTH ("M", "ежемесячный"),
    @XmlEnumValue("W") WEEK ("W", "еженедельный"),
    @XmlEnumValue("D") DAY ("D", "ежедневный"),
    @XmlEnumValue("A") OTHER ("А", "другой");

    private String name;
    private String description;

    private RegularPayPeriod(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    @SuppressWarnings("unused")
    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return getName();
    }
}
